﻿using HK.Core.GUIEx.Protocol.Attribute;
using HK.Core.Serializable.Protocol.Attribute;

namespace HK.Core.Serializable.Attribute
{
    /// <summary>
    /// Attribute - 列表视图
    /// </summary>
    public class GroupViewAttribute : GenericFieldAttribute, IGroupViewAttribute
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="iCaption">标题</param>
        /// <param name="iOptions">选项</param>
        public GroupViewAttribute(string iCaption, int iOptions = (int)GUIOperateOptions.GroupView) :
            this(iCaption, null, null, iOptions) { }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="iCaption">标题</param>
        /// <param name="iIcon">Icon</param>
        /// <param name="iTips">提示</param>
        /// <param name="iOptions">选项</param>
        public GroupViewAttribute(string iCaption, string iIcon, string iTips = null, int iOptions = (int)GUIOperateOptions.GroupView) :
            base(iCaption, iIcon, iTips, iOptions) { }
        
        /// <summary>
        /// 保护构造函数
        /// </summary>
        private GroupViewAttribute() : base() {}
    }   
}